package com.xzh.wms.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.xzh.wms.entity.*;
import com.xzh.wms.dao.ProductDao;
import com.xzh.wms.service.ProductService;

import java.util.List;

/**
 * ;(206_product)表服务实现类
 * @author : heimi
 * @date : 2024-11-10
 */
@Service
public class ProductService {
     
    @Autowired
    private ProductDao productDao;
    
    public List<Product> select(ProductQuery query) {
        return productDao.select(query);
    }
    
    public Integer insert(Product product) {
        return productDao.insert(product);
    }
    
    public Integer update(Product product) {
        return productDao.update(product);
    }
    
    public Integer delete(Integer id) {
        return productDao.delete(id);
    }

}